<template>
  <div class="demo-progress">
    <el-progress type="circle" :percentage="0" />
    <el-progress type="circle" :percentage="25" />
    <el-progress type="circle" :percentage="100" status="success" />
    <el-progress type="circle" :percentage="70" status="warning" />
    <el-progress type="circle" :percentage="50" status="exception" />
    <el-progress type="dashboard" :percentage="percentage" :color="colors" />
  </div>
  <slot :html="html" />
</template>
<script lang="ts" setup>
import { ref } from "vue";
const percentage = ref(10);

const html = ref(`
<template>
  <div class="demo-progress">
    <el-progress type="circle" :percentage="0" />
    <el-progress type="circle" :percentage="25" />
    <el-progress type="circle" :percentage="100" status="success" />
    <el-progress type="circle" :percentage="70" status="warning" />
    <el-progress type="circle" :percentage="50" status="exception" />
    <el-progress type="dashboard" :percentage="percentage" :color="colors" />
  </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
const percentage = ref(10);

const colors = [
  { color: "#f56c6c", percentage: 20 },
  { color: "#e6a23c", percentage: 40 },
  { color: "#5cb87a", percentage: 60 },
  { color: "#1989fa", percentage: 80 },
  { color: "#6f7ad3", percentage: 100 }
];
<\/script>
<style scoped>
.demo-progress .el-progress--circle {
  margin-right: 15px;
}
</style>
`);

const colors = [
  { color: "#f56c6c", percentage: 20 },
  { color: "#e6a23c", percentage: 40 },
  { color: "#5cb87a", percentage: 60 },
  { color: "#1989fa", percentage: 80 },
  { color: "#6f7ad3", percentage: 100 }
];
</script>
<style scoped>
.demo-progress .el-progress--circle {
  margin-right: 15px;
}
</style>
